﻿@{
    ViewBag.Title = "油卡加油信息";
    Layout = "~/Areas/IM/Views/Shared/_Layout.cshtml";
}
@section scripts{
    <script src="../Scripts/jquery.AnkeExtend.js"> </script>
    <script type="text/javascript">
        //页面动态改动
        $(window).resize(function () {
            $.setGridWithSearchBar("#TableForm", "#SearchBar", "#gridRefuel");
        });

        //页面初始化
        $(document).ready(function () {

            initListcombo();
            initcombo();

            bindGrid();
            //initPassGrid();
            DisableBackspace();
            $.setGridWithSearchBar("#TableForm", "#SearchBar", "#gridRefuel");
        })
        //#region 为Combobox增加--请选择--
        function EUIcombobox(jqS, o) {
            $.ajax({
                type: "POST",
                async: false,
                url: o.url,
                dataType: "JSON",
                success: function (data1, textStatus, jqXHR) {
                    o.data = o.OneOption.concat(data1);
                    delete o.url;
                    delete o.OneOption;
                    $(jqS).combobox(o);
                },
                error: function (XMLHttpRequest, textStatus, errorThrown) {
                    alert("获取字典数据失败！可能是已经超时，请重新登录！");
                }
            });
        }
        function initListcombo() {
            //取卡号(所有的)
            $.EUIcombobox("#cardCode", {
                url: '@Url.Content("~/CM/CardInfo/GetCardCode?em=")' + '@ViewData["em"]' + '&selfCenterID=' + '@ViewData["selfCenterID"]' + '&selfStationID=' + '@ViewData["selfStationID"]' + '&selfWorkCode=' + '@ViewData["selfWorkCode"]',
                valueField: 'ID',
                textField: 'Name',
                editable: true,
                OneOption: [{
                    ID: "",
                    Name: "--请选择--"
                }]
            });
            EUIcombobox("#centerID", {
                url: '@Url.Content("~/Medical/GetCenter/")',
                valueField: 'ID',
                textField: 'Name',
                //prompt: '--请选择--',
                editable: false,
                OneOption: [{
                    ID: "",
                    Name: "--请选择--"
                }],
                onSelect: function (rec) {
                    var urlstation = '@Url.Content("~/Medical/GetStation?code=")' + rec.ID;
                    EUIcombobox("#stationID", {
                        url: urlstation,
                        valueField: 'ID',
                        textField: 'Name',
                        //prompt: '--请选择--',
                        editable: false,
                        OneOption: [{
                            ID: "",
                            Name: "--请选择--"
                        }]
                    });
                }
            });
            //#endregion

            //#region 出车分站
            EUIcombobox("#stationID", {
                url: '@Url.Content("~/Medical/GetStation?code=")',
                valueField: 'ID',
                textField: 'Name',
                //prompt: '--请选择--',
                editable: false,
                OneOption: [{
                    ID: "",
                    Name: "--请选择--"
                }],
                onSelect: function (rec) {
                    var zz = '@Url.Content("~/CM/CarBasicInfo/getPlateByStationID?stationCode=")' + rec.ID;
                    EUIcombobox("#actualCode", {
                        url: zz,
                        valueField: 'AmbulanceCode',
                        textField: 'PlateNumber',
                        editable: false,
                        OneOption: [{
                            AmbulanceCode: "",
                            PlateNumber: "--请选择--"
                        }]
                    });
                    var zzz = '@Url.Content("~/CM/CarBasicInfo/getPlateByStationID?stationCode=")' + rec.ID;
                    EUIcombobox("#ambulanceNumber", {
                        url: zzz,
                        valueField: 'AmbulanceCode',
                        textField: 'CarNumber',
                        editable: false,
                        OneOption: [{
                            AmbulanceCode: "",
                            CarNumber: "--请选择--"
                        }]
                    });
                },
                onChange: function (newValue, oldValue) {
                    $("#ambulanceNumber").combobox('clear');
                    $("#actualCode").combobox('clear');
                }
            });

            //车辆牌号 初始化
            EUIcombobox("#actualCode", {
                url: '@Url.Content("~/CM/CarBasicInfo/getPlateByStationID?stationCode=")',
                valueField: 'AmbulanceCode',
                textField: 'PlateNumber',
                editable: true,
                OneOption: [{
                    AmbulanceCode: "",
                    PlateNumber: "--请选择--"
                }],
                onSelect: function (rec) {

                    $("#ambulanceNumber").combobox('setValue', rec.AmbulanceCode);  //根据选择车牌对应的ID ，给车辆编号赋值
                }
            });
            EUIcombobox("#ambulanceNumber", {       //选择车辆编号的联动 初始化
                url: '@Url.Content("~/CM/CarBasicInfo/getCarNumberByID?ID=")',
                valueField: 'AmbulanceCode',
                textField: 'CarNumber',
                editable: true,
                OneOption: [{
                    AmbulanceCode: "",
                    CarNumber: "--请选择--"
                }],
                onSelect: function (rec) {

                    $("#actualCode").combobox('setValue', rec.AmbulanceCode);  //根据选择车辆编号对应的ID，给车牌号赋值 初始化
                }
            });

            @*//取车牌号码（所有的）
            $.EUIcombobox("#actualCode", {
                url: '@Url.Content("~/CM/Refuel/GetAllActualCode/")',
                valueField: 'Name',
                textField: 'Name',
                editable: true,
                OneOption: [{
                    ID: "",
                    Name: "--请选择--"
                }]
            });
            //取车辆编号（所有的）
            $.EUIcombobox("#ambulanceNumber", {
                url: '@Url.Content("~/CM/Refuel/GetAllAmbulanceNumber/")',
                valueField: 'Name',
                textField: 'Name',
                editable: true,
                OneOption: [{
                    ID: "",
                    Name: "--请选择--"
                }]
            });*@
            //取加油油号
            $.EUIcombobox("#oilType", {
                url: '@Url.Content("~/CM/Refuel/GetOilType/")',
                valueField: 'ID',
                textField: 'Name',
                editable: false,
                OneOption: [{
                    ID: "",
                    Name: "--请选择--"
                }]
            });
            //取班次
            $.EUIcombobox("#shift", {
                url: '@Url.Content("~/CM/Refuel/GetShift/")',
                valueField: 'ID',
                textField: 'Name',
                editable: false,
                OneOption: [{
                    ID: "",
                    Name: "--请选择--"
                }]
            });
            $('#start').datetimebox('setValue', '@ViewData["start"]');
            $('#end').datetimebox('setValue', '@ViewData["end"]');

        }

        @*function initPassGrid() {
        if ('@ViewData["txtPlateNumber"]' != null && '@ViewData["txtPlateNumber"]' != "" && '@ViewData["txtPlateNumber"]' != "--请选择--" && '@ViewData["txtCarNumber"]' != null &&
          '@ViewData["txtCarNumber"]' != "" && '@ViewData["txtCarNumber"]' != "--请选择--" &&
          '@ViewData["txtCenterCode"]' != null && '@ViewData["txtCenterCode"]' != "" && '@ViewData["txtCenterCode"]' != "--请选择--" && '@ViewData["txtStationCode"]' != null &&
          '@ViewData["txtStationCode"]' != "" && '@ViewData["txtStationCode"]' != "--请选择--") {
            $('#centerID').combobox('disable');
            $('#stationID').combobox('disable');
            $('#actualCode').combobox('disable');
            $('#ambulanceNumber').combobox('disable');
            $('#centerID').combobox('setValue', '@ViewData["txtCenterCode"]');
            $('#stationID').combobox('setValue', '@ViewData["txtStationCode"]');
            $('#actualCode').combobox('setText', '@ViewData["txtPlateNumber"]');
            $('#ambulanceNumber').combobox('setText', '@ViewData["txtCarNumber"]');

            reSearch();
            $('div.datagrid-toolbar a').eq(0).hide();
            $('div.datagrid-toolbar div').eq(0).hide();
            $('div.datagrid-toolbar a').eq(1).hide();
            $('div.datagrid-toolbar div').eq(1).hide();
        }


    }*@


        //datagrid列表
        function bindGrid() {
            if ('@ViewData["txtPlateNumber"]' != null && '@ViewData["txtPlateNumber"]' != "" && '@ViewData["txtPlateNumber"]' != "--请选择--") {
                $('#centerID').combobox('disable');
                $('#stationID').combobox('disable');
                $('#actualCode').combobox('disable');
                $('#ambulanceNumber').combobox('disable');
                $('#centerID').combobox('setValue', '@ViewData["txtCenterCode"]');
                $('#stationID').combobox('setValue', '@ViewData["txtStationCode"]');
                $('#actualCode').combobox('setText', '@ViewData["txtPlateNumber"]');
                $('#ambulanceNumber').combobox('setText', '@ViewData["txtCarNumber"]');
            }
            $('#gridRefuel').datagrid({
                width: 'auto',
                height: 'auto',
                fitColumns: true,
                striped: true,
                singleSelect: true,
                url: '@Url.Content("~/CM/Refuel/DataLoad")',
                loadMsg: '数据加载中请稍后……',
                pagination: true,//启用分页
                rownumbers: true,//显示页码
                pageSize: 15,//设置 页容量
                pageList: [10, 15, 20],//设置 页容量下拉框
                queryParams: {
                    start: $('#start').datetimebox('getValue'),
                    end: $('#end').datetimebox('getValue'),
                    center: $("#centerID").combobox('getValue'),
                    station: $('#stationID').combobox('getValue'),
                    actualCode: $('#actualCode').combobox('getText'),
                    ambulanceNumber: $('#ambulanceNumber').combobox('getText'),
                    oilType: $('#oilType').combobox('getText'),
                    shift: $('#shift').combobox('getText'),
                    cardCode: $('#cardCode').combobox('getText')
                },
                columns: [[
                   { title: 'ID', field: 'ID', hidden: true },
                   { title: '分中心', field: 'Center', width: '6%', align: "center", sortable: false, hidden: true },
                   { title: '分站', field: 'Station', width: '8%', align: "center", sortable: false, hidden: true },
                   { title: '车牌号码', field: 'ActualCode', width: '9%', align: "center", sortable: false },
                   { title: '车辆编号', field: 'AmbulanceNumber', width: '8%', align: "center", sortable: false },
                   { title: '卡号', field: 'CardCode', width: '14%', align: "center", sortable: false },
                   { title: '加油日期', field: 'RefuelTime', width: '12%', align: "center", sortable: false },
                   { title: '班次', field: 'Shift', width: '6%', align: "center", sortable: false, hidden: true },
                   { title: '加油油号', field: 'OilType', width: '6%', align: "center", sortable: false, hidden: true },
                   { title: '本班加油量(升)', field: 'OilMass', width: '8%', align: "center", sortable: false },
                   { title: '加油金额(元)', field: 'RefuelMoney', width: '7%', align: "center", sortable: false },
                   { title: '卡内余额(元)', field: 'CardRemaining', width: '7%', align: "center", sortable: false },
                   { title: '上次加油路码', field: 'LastGasPathCode', width: '8%', align: "center", sortable: false },
                   { title: '本次加油路码', field: 'GasPathCode', width: '8%', align: "center", sortable: false },
                   { title: '行驶公里', field: 'DrivingKM', width: '7%', align: "center", sortable: false },
                   { title: '驾驶员工号', field: 'DriverWorkID', width: '6%', align: "center", sortable: false, hidden: true },
                   { title: '驾驶员姓名', field: 'DriverName', width: '8%', align: "center", sortable: false, hidden: true },
                   { title: '备注', field: 'Remark', width: '10%', align: "center", sortable: false },
                   { title: '凭证编号', field: 'ProofNumber', width: '8%', align: "center", sortable: false, hidden: true },
                   { title: '加油人', field: 'RefuelPerson', width: '8%', align: "center", sortable: false, hidden: true },
                   { title: '卡内金额', field: 'CardAmount', width: '8%', align: "center", sortable: false, hidden: true },
                   { title: '车辆编码', field: 'AmbulanceCode', hidden: true },
                ]],
                toolbar: [
                    {
                        id: 'btnAdd',
                        text: '新增',
                        iconCls: 'icon-add',
                        handler: function () {
                            $('#NewRefuelList').dialog('open');
                            initAddInfo();
                            if ('@ViewData["RolePermissionEdit"]' == "Edit") {
                                $("#CardAmount").textbox({ disabled: false });
                            }
                        }
                    }, '-',
                   {
                       id: 'btnEdit',
                       text: '修改',
                       iconCls: 'icon-edit',
                       handler: function () {
                           var row = $('#gridRefuel').datagrid('getSelected');
                           if (row) {
                               initUpdateInfo(row);
                               $("#ID").val(row.ID);
                               $("#CardCode").combobox("setValue", row.CardCode);
                               $("#Center").combobox("setText", row.Center);
                               $("#Station").combobox("setText", row.Station);
                               $('#DriverWorkID').combobox('setText', row.DriverWorkID);
                               $('#DriverName').combobox('setText', row.DriverName);
                               $("#RefuelTime").datetimebox("setText", row.RefuelTime);
                               $("#Shift").combobox("setText", row.Shift);
                               $("#ActualCode").combobox("setValue", row.ActualCode);
                               $("#AmbulanceNumber").combobox("setText", row.AmbulanceNumber);
                               $("#AmbulanceCode").val(row.AmbulanceCode);
                               $("#OilType").combobox("setValue", row.OilType);
                               $("#OilMass").numberbox("setValue", row.OilMass);
                               $("#RefuelMoney").numberbox("setValue", row.RefuelMoney);
                               $("#LastGasPathCode").numberbox("setValue", row.LastGasPathCode);
                               $("#LastGasPathCode").numberbox({ disabled: false });
                               $("#GasPathCode").numberbox("setValue", row.GasPathCode);
                               $("#DrivingKM").numberbox("setValue", row.DrivingKM);
                               $("#CardRemaining").textbox("setText", row.CardRemaining);
                               $("#CardAmount").textbox("setText", row.CardAmount);
                               $("#CardAmount").textbox({ disabled: false });
                               $("#Remark").textbox("setText", row.Remark);
                               $("#RefuelPerson").combobox("setText", row.RefuelPerson);
                               $("#ProofNumber").textbox("setText", row.ProofNumber);

                               $('#NewRefuelList').dialog('open');
                           } else {
                               $.messager.alert('提示', '请选择数据行', 'info', function () {
                               });
                           }
                       }
                   }, '-',
                {
                    id: 'btnSearch',
                    text: '查看',
                    iconCls: 'icon-search',
                    handler: function () {
                        var row = $('#gridRefuel').datagrid('getSelected');
                        if (row) {
                            $("#ID").val(row.ID);
                            $("#CardCode").combobox("setValue", row.CardCode);
                            $("#Center").combobox("setValue", row.Center);
                            $("#Station").combobox("setValue", row.Station);
                            $("#ActualCode").combobox("setValue", row.ActualCode);
                            $("#AmbulanceNumber").combobox("setText", row.AmbulanceNumber);
                            $("#Center").val(row.CenterID);
                            $("#Station").val(row.StationID);
                            $("#Shift").combobox("setText", row.Shift);
                            $("#DriverWorkID").combobox("setText", row.DriverWorkID);
                            $("#DriverName").combobox("setText", row.DriverName);
                            $("#OilType").combobox("setText", row.OilType);
                            $("#OilMass").numberbox("setValue", row.OilMass);
                            $("#RefuelMoney").numberbox("setValue", row.RefuelMoney);
                            $("#LastGasPathCode").numberbox("setValue", row.LastGasPathCode);
                            $("#GasPathCode").numberbox("setValue", row.GasPathCode);
                            $("#DrivingKM").numberbox("setValue", row.DrivingKM);
                            $("#Remark").textbox("setText", row.Remark);
                            $("#RefuelTime").datetimebox("setText", row.RefuelTime);
                            $("#ProofNumber").textbox("setText", row.ProofNumber);
                            $("#RefuelPerson").textbox("setText", row.RefuelPerson);
                            $("#CardRemaining").textbox("setText", row.CardRemaining);
                            $("#CardAmount").textbox("setText", row.CardAmount);

                            $('#NewRefuelList').dialog('open');
                            $('#btnadd').linkbutton('disable');
                            $.GID("btnadd").style.display = "none";
                            $('#btnedit').linkbutton('disable');
                            $.GID("btnedit").style.display = "none";
                        } else {
                            $.messager.alert('提示', '请选择数据行', 'info', function () {
                            });
                        }
                    }
                }
                ]
            })
            $.setGridWithSearchBar("#TableForm", "#SearchBar", "#gridRefuel");
            if ('@ViewData["txtCenterCode"]' == '') {
                //if ('@ViewData["em"]' == 'ALL') {
                if ('@ViewData["RolePermissionInsert"]' == "Insert") {
                    $('div.datagrid-toolbar a').eq(0).show();
                    $('div.datagrid-toolbar div').eq(0).show();
                    //$('div.datagrid-toolbar a').eq(2).show();
                    //$('div.datagrid-toolbar div').eq(2).show();
                } else if ('@ViewData["RolePermissionInsert"]' != "Insert") {
                    $('div.datagrid-toolbar a').eq(0).hide();
                    $('div.datagrid-toolbar div').eq(0).hide();
                    // $('div.datagrid-toolbar div').eq(2).hide();
                    //$('div.datagrid-toolbar a').eq(2).hide();
                }
                @*} else if ('@ViewData["em"]' == 'CENTER') {
                    if ('@ViewData["RolePermissionInsert"]' == "Insert") {
                        $('div.datagrid-toolbar a').eq(0).show();
                        $('div.datagrid-toolbar div').eq(0).show();
                        $('div.datagrid-toolbar a').eq(2).show();
                        $('div.datagrid-toolbar div').eq(2).show();
                    } else if ('@ViewData["RolePermissionInsert"]' != "Insert") {
                        $('div.datagrid-toolbar a').eq(0).hide();
                        $('div.datagrid-toolbar div').eq(0).hide();
                        $('div.datagrid-toolbar div').eq(2).hide();
                        $('div.datagrid-toolbar a').eq(2).hide();
                    }
                } else if ('@ViewData["em"]' == 'STATION') {
                    $('div.datagrid-toolbar a').eq(0).hide();
                    $('div.datagrid-toolbar div').eq(0).hide();
                    $('div.datagrid-toolbar div').eq(2).hide();
                    $('div.datagrid-toolbar a').eq(2).hide();
                } else if ('@ViewData["em"]' == 'SELF') {
                    if ('@ViewData["RolePermissionInsert"]' == "Insert") {
                        $('div.datagrid-toolbar a').eq(0).show();
                        $('div.datagrid-toolbar div').eq(0).show();
                        $('div.datagrid-toolbar a').eq(2).show();
                        $('div.datagrid-toolbar div').eq(2).show();
                    } else if ('@ViewData["RolePermissionInsert"]' != "Insert") {
                        $('div.datagrid-toolbar a').eq(0).hide();
                        $('div.datagrid-toolbar div').eq(0).hide();
                        $('div.datagrid-toolbar div').eq(2).hide();
                        $('div.datagrid-toolbar a').eq(2).hide();
                    }*@
                //}

                if ('@ViewData["RolePermissionEdit"]' == "Edit") {
                    $('div.datagrid-toolbar a').eq(1).show();
                    $('div.datagrid-toolbar div').eq(1).show();
                } else if ('@ViewData["RolePermissionEdit"]' != "Edit") {
                    $('div.datagrid-toolbar a').eq(1).hide();
                    $('div.datagrid-toolbar div').eq(1).hide();
                }
            } else if ('@ViewData["txtCenterCode"]' != '') {
                $('div.datagrid-toolbar a').eq(0).hide();
                $('div.datagrid-toolbar div').eq(0).hide();
                $('div.datagrid-toolbar a').eq(1).hide();
                $('div.datagrid-toolbar div').eq(1).hide();
            }
        }
        //查询
        function reSearch() {
            $('#gridRefuel').datagrid({
                pageNumber: 1,
                queryParams: {
                    start: $('#start').datetimebox('getValue'),
                    end: $('#end').datetimebox('getValue'),
                    center: $("#centerID").combobox('getValue'),
                    station: $('#stationID').combobox('getValue'),
                    actualCode: $('#actualCode').combobox('getText'),
                    ambulanceNumber: $('#ambulanceNumber').combobox('getText'),
                    oilType: $('#oilType').combobox('getText'),
                    shift: $('#shift').combobox('getText'),
                    cardCode: $('#cardCode').combobox('getText')
                }
            });
            //$('div.datagrid-toolbar a').eq(0).hide();
            //$('div.datagrid-toolbar div').eq(0).hide();
            //判断是从车辆基础信息页面点击进入油卡加油页面，还是直接点击油卡加油页面，来显示和隐藏按钮功能
            if ('@ViewData["txtCenterCode"]' == '') {
                @*if ('@ViewData["em"]' == 'ALL') {*@
                if ('@ViewData["RolePermissionInsert"]' == "Insert") {
                    $('div.datagrid-toolbar a').eq(0).show();
                    $('div.datagrid-toolbar div').eq(0).show();
                    $('div.datagrid-toolbar a').eq(2).show();
                    $('div.datagrid-toolbar div').eq(2).show();
                } else if ('@ViewData["RolePermissionInsert"]' != "Insert") {
                    $('div.datagrid-toolbar a').eq(0).hide();
                    $('div.datagrid-toolbar div').eq(0).hide();
                    $('div.datagrid-toolbar div').eq(2).hide();
                    $('div.datagrid-toolbar a').eq(2).hide();
                }
                @*} else if ('@ViewData["em"]' == 'CENTER') {
                    if ('@ViewData["RolePermissionInsert"]' == "Insert") {
                        $('div.datagrid-toolbar a').eq(0).show();
                        $('div.datagrid-toolbar div').eq(0).show();
                        $('div.datagrid-toolbar a').eq(2).show();
                        $('div.datagrid-toolbar div').eq(2).show();
                    } else if ('@ViewData["RolePermissionInsert"]' != "Insert") {
                        $('div.datagrid-toolbar a').eq(0).hide();
                        $('div.datagrid-toolbar div').eq(0).hide();
                        $('div.datagrid-toolbar div').eq(2).hide();
                        $('div.datagrid-toolbar a').eq(2).hide();
                    }
                } else if ('@ViewData["em"]' == 'STATION') {
                    $('div.datagrid-toolbar a').eq(0).hide();
                    $('div.datagrid-toolbar div').eq(0).hide();
                    $('div.datagrid-toolbar div').eq(2).hide();
                    $('div.datagrid-toolbar a').eq(2).hide();
                } else if ('@ViewData["em"]' == 'SELF') {
                    if ('@ViewData["RolePermissionInsert"]' == "Insert") {
                        $('div.datagrid-toolbar a').eq(0).show();
                        $('div.datagrid-toolbar div').eq(0).show();
                        $('div.datagrid-toolbar a').eq(2).show();
                        $('div.datagrid-toolbar div').eq(2).show();
                    } else if ('@ViewData["RolePermissionInsert"]' != "Insert") {
                        $('div.datagrid-toolbar a').eq(0).hide();
                        $('div.datagrid-toolbar div').eq(0).hide();
                        $('div.datagrid-toolbar div').eq(2).hide();
                        $('div.datagrid-toolbar a').eq(2).hide();
                    }
                }*@
                if ('@ViewData["RolePermissionEdit"]' == "Edit") {
                    $('div.datagrid-toolbar a').eq(1).show();
                    $('div.datagrid-toolbar div').eq(1).show();
                } else if ('@ViewData["RolePermissionEdit"]' != "Edit") {
                    $('div.datagrid-toolbar a').eq(1).hide();
                    $('div.datagrid-toolbar div').eq(1).hide();
                }
            } else if ('@ViewData["txtCenterCode"]' != '') {
                $('div.datagrid-toolbar a').eq(0).hide();
                $('div.datagrid-toolbar div').eq(0).hide();
                $('div.datagrid-toolbar a').eq(1).hide();
                $('div.datagrid-toolbar div').eq(1).hide();
            }
        }
    </script>
}
<div id="TableForm" class="easyui-layout" style="width:auto; height: auto; margin-left: auto; margin-right: auto">
    <div data-options="region:'center',title:'油卡加油信息',iconCls:'icon-custom-Entry'">
        <div id="SearchBar" data-options="region:'center'" style="overflow: hidden; padding: 10px">
            <table style="width:99%" cellpadding="0" cellspacing="5" border="0">
                <tr>
                    <td align="right" valign="middle" width="8%">加油时间：</td>
                    <td align="right" valign="middle" width="12%">
                        <input id="start" class="easyui-datetimebox" value=@ViewData["start"] style="width:150px" data-options="editable:false" />
                    </td>
                    <td align="right" valign="middle" width="8%">至：</td>
                    <td align="right" valign="middle" width="12%">
                        <input id="end" class="easyui-datetimebox" value=@ViewData["end"] style="width:150px" data-options="editable:false" />
                    </td>
                    <td align="right" valign="middle" width="8%">卡号：</td>
                    <td align="right" valign="middle" width="12%">
                        <input id="cardCode" class="easyui-combobox" style="width:160px" />
                    </td>
                    <td align="right" valign="middle" width="8%">班次：</td>
                    <td align="right" valign="middle" width="12%">
                        <input id="shift" class="easyui-combobox" style="width:150px" data-options="panelHeight:'auto', editable:false" />
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="middle" width="8%">分中心：</td>
                    <td align="right" valign="middle" width="12%">
                        <input id="centerID" class="easyui-combobox" style="width:150px" data-options="panelHeight:'auto', editable:false" />
                    </td>
                    <td align="right" valign="middle" width="8%">分站：</td>
                    <td align="right" valign="middle" width="12%">
                        <input id="stationID" class="easyui-combobox" style="width:150px" />
                    </td>
                    <td align="right" valign="middle" width="8%">车牌号码：</td>
                    <td align="right" valign="middle" width="12%">
                        <input id="actualCode" class="easyui-combobox" style="width:160px" />
                    </td>
                    <td align="right" valign="middle" width="8%">车辆编号：</td>
                    <td align="right" valign="middle" width="12%">
                        <input id="ambulanceNumber" class="easyui-combobox" style="width:150px" />
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="middle" width="8%">加油油号：</td>
                    <td align="right" valign="middle" width="12%">
                        <input id="oilType" class="easyui-combobox" style="width:150px" data-options="panelHeight:'auto', editable:false" />
                    </td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td align="center" valign="middle" width="11%">
                        <a href="javascript:void(0)" id="btnsearch" class="easyui-linkbutton" data-options="iconCls:'icon-search'" onclick="reSearch()">查询</a>
                    </td>
                </tr>
            </table>
        </div>
        <div data-options="region:'center'" style="background: #fafafa; overflow: hidden">
            <table id="gridRefuel"></table>
        </div>
    </div>
</div>

@Html.Partial("~/Areas/CM/Views/Refuel/RefuelEdit.cshtml")